package guda.sqladmin.web.form;

import guda.sqladmin.dao.domain.ProjectTableDO;


public class ProjectTableEditForm extends ProjectTableForm{

    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public ProjectTableDO toDO(){
        ProjectTableDO projectTableDO  =super.toDO();
        projectTableDO.setId(this.id);
        return projectTableDO;
    }

    public void initForm(ProjectTableDO projectTableDO){
        if(projectTableDO == null){
        return ;
    }
        this.setProjectId(projectTableDO.getProjectId());
    this.setTableDesc(projectTableDO.getTableDesc());
    this.setTableName(projectTableDO.getTableName());
}

}
